package per.com.dao;


import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import per.com.bean.Order;
import per.com.bean.UserOrder;

import java.util.List;

/**
 * @author plx
 */
@Repository("PcOrderDaoId")
public interface PcOrderDao {

    void  insertOrder(Order order);

    Order findOrderById(String orderId);



    List<Order> getOrderByUserId(String userId);

    List<UserOrder> getAllMyOrder(String userId);

    void deleteOrder(@Param("id") String id,@Param("userId") String userId);

}